import { useAppSelector } from '../../store/hooks'
import { Button } from 'antd'

export default function Home() {

  const userStore = useAppSelector((state: any) => state.user)

  return (
    <div>
      <h1 className="text-3xl font-bold underline">
        Hello world!
      </h1>
      <Button type="primary">AntD Button</Button>
      <Button type="primary" danger>AntD Button</Button>
      <div>
        <p>
          {userStore.username}
        </p>
        <p>
          {userStore.password}
        </p>
      </div>
    </div>
  )
}
